{% extends 'Rango/base.html' %}
{% load static %}

{% block title_block %}How to Tango with Django{% endblock %}
{% block body_block %}
<h1>Register with Rango</h1>

{% if registered %}
    Rango says: <strong> thank you for registering!</strong>
    <a href="{% url 'index' %}">Return to the homepage</a>
{% else %}
    Rango says: <strong>register here!</strong>

<form id="user_form" method="post" action={% url 'Rango:register' %} enctype="multipart/form-data">
    {% csrf_token %}
    {{ user_form.as_p }}
    {{ profile_from.as_p }}

    <input type="submit" name="submit" value="Register" />
</form>
{% endif %}
{% endblock %}